package model

import "github.com/bytedance/sonic"

type ContentStatus int32

var (
	ContentStatus_Pending      ContentStatus = 1
	ContentStatus_Pass         ContentStatus = 2
	ContentStatus_Unpass       ContentStatus = 3
	ContentStatus_NotRecommend ContentStatus = 4
)

type ContentExtra struct {
	Category []string `json:"category,omitempty"` // 内容分类
}

func (c *Content) GetExtra() *ContentExtra {
	extra := &ContentExtra{}
	_ = sonic.UnmarshalString(c.Extra, &extra)
	return extra
}
